/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.ccpobey.impl;

/**
 *
 * @author Siya
 */
public class EmployeeSalaryImpl implements EmployeeSalary{

    private double rate;
    private double salary;
    private static double WORKINGHOURS = 8;
    
    public EmployeeSalaryImpl(){
        
        
    }
    public EmployeeSalaryImpl(double rt){
        
        rate = rt; 
    }
    @Override 
    public double salary() {
        return salary = getRate() * WORKINGHOURS;
    }
   /* public void rateIncrease(){
        
        salary = (getRate() + 6) * WORKINGHOURS;
    }*/

    /**
     * @return the rate
     */
    public double getRate() {
        return rate;
    }

    /**
     * @param rate the rate to set
     */
    public void setRate(double rate) {
        this.rate = rate;
    }
    
    
    
}
